import axios from 'axios'

export default class CaseTypeService {
    static caseTypeService = null

    static getInstance(){
        if(this.caseTypeService == null){
            this.caseTypeService = new CaseTypeService()
        }
        return this.caseTypeService
    }

    parentList(){
        return axios.get('http://localhost/caseTypes')
    }

    childrenList(typePid){
        return axios.get(`http://localhost/caseTypes/parent/${typePid}`)
    }
}
